
#ifndef __ROSA_UTIL__
#define __ROSA_UTIL__

#ifdef __GNUC__

#define breakpoint __asm__("breakpoint");

#else

void __stdcall DebugBreak(void);
#define breakpoint DebugBreak();

#endif

#define assert(x) do {if(!(x)) breakpoint; } while(0);

#endif // __ROSA_UTIL__